export default {
    menus: [    // 菜单相关路由
        {
            key: '/app/system', title: '系统管理', icon: 'systemManger',permission:'sys:read',
            subs: [
                { key: '/app/system/resources', title: '资源管理', icon: 'resourcesManger', component: 'ResourceManager',permission:'permission:get'},
                { key: '/app/system/roles', title: '角色管理',  icon: 'rolesManger',component: 'RoleManagers',permission:'role:get'},
                { key: '/app/system/classifies', title: '分级管理',  icon: 'classfiesManger',component: 'ClassifiesForm',permission:'company:get'},
                { key: '/app/system/users', title: '用户管理',  icon: 'usersManger',component: 'UserManagerForm',permission:'user:get'},
                { key: '/app/system/log', title: '日志管理', component: 'UseroperationForm',icon: 'log',permission:'log:get'},
            ],
        },
        {
            key: '/app/upgrade', title: '升级管理', icon: 'upgradeManager',permission:'updatepro:read',
            subs: [
                { key: '/app/upgrade/version', title: '版本信息管理', icon: 'versioninfoManger',component: 'VersioninfoManger',permission:'version:get',},
                { key: '/app/upgrade/common', title: '公用信息管理', icon: 'publicinfoManger',permission:'common:read',
                    subs:[
                        { key: '/app/upgrade/common/ip', title: '限制IP表', component: 'LimitIP',permission:'controlIp:all',},
                        { key: '/app/upgrade/common/version', title: '限制版本表', component: 'LimitVersion',permission:'controlVersion:all',},
                        { key: '/app/upgrade/common/mac', title: '限制MAC表', component: 'LimitMAC',permission:'controlMac:all',},
                        { key: '/app/upgrade/common/collect', title: '收集信息表', component: 'CollectInfos',permission:'collect:get',},
                        { key: '/app/upgrade/common/language', title: '语言表', component: 'Language',permission:'lang:get',},
                        { key: '/app/upgrade/common/setting', title: '公用设置表', component: 'SettingCommon',permission:'settingcomm:get',},
                        { key: '/app/upgrade/common/download', title: '下载服务器表', component: 'Download',permission:'download:get',},
                    ]
                },
                { key: '/app/upgrade/sysInfo', title: '系统信息管理', icon: 'sysdateManger',permission:'logstatus:read',
                    subs:[
                        { key: '/app/upgrade/sysInfo/check', title: '流量报表', component: 'SysinfoCheck',permission:'logstatus:fluxQueue',},
                        { key: '/app/upgrade/sysInfo/permission', title: '准许报表', component: 'SysinfoPermission',permission:'logstatus:allowCount',},
                        { key: '/app/upgrade/sysInfo/status', title: '状态报表', component: 'SysinfoStatus',permission:'logstatus:responseStatus',},
                        { key: '/app/upgrade/sysInfo/current:id', title: '当前状态表', component: 'SysinfoCurrent',permission:'logstatus:getstatus',},
                        { key: '/app/upgrade/sysInfo/log', title: '日志信息',component: 'BusinessLogForm',permission:'updatepro:log',},
                    ]
                },
            ],
        },
        {
            key: '/app/statistics', title: '数据统计', icon: 'statistics',permission:'wpscollect:read',
            subs: [
                { key: '/app/statistics/upgrade', title: '升级信息',icon: 'upgrade',permission:'updateinfo:read',
                    subs:[
                        { key: '/app/statistics/upgrade/request', title: '请求信息', component: 'RequestInfoForm',permission:'updateRequest:get',},
                        { key: '/app/statistics/upgrade/download', title: '下载信息', component: 'DownloadInfoForm',permission:'updateDownload:get',},
                        { key: '/app/statistics/upgrade/install', title: '安装信息', component: 'InstallInfoForm',permission:'updateInstall:get',},
                    ]
                },
                { key: '/app/statistics/report', title: '报活信息',icon: 'report',permission:'usage:read',
                    subs:[
                        { key: '/app/statistics/report/day', title: '日报活信息', component: 'ReportDay',permission:'usage:dailyChart',},
                        { key: '/app/statistics/report/month', title: '月报活信息', component: 'ReportMonth',permission:'usage:monthChart',},
                    ]
                },
                { key: '/app/statistics/install', title: '安装量信息',icon: 'install',permission:'logInstall:read',
                    subs:[
                        { key: '/app/statistics/install/day', title: '日安装量', component: 'InstallDay',permission:'logInstall:dailyChart',},
                        { key: '/app/statistics/install/month', title: '月安装量', component: 'InstallMonth',permission:'logInstall:monthChart',},
                        { key: '/app/statistics/install/count', title: '安装量统计', component: 'InstallCount',permission:'logInstall:getStatistics',},
                    ]
                },
                { key: '/app/statistics/mso', title: 'MSO版本信息',icon: 'mso',component: 'MsoPage',permission:'mso:get',},
                { key: '/app/statistics/uninstall', title: '卸载信息',icon: 'uninstall',component: 'Uninstall',permission:'logUninstall:get',},
                { key: '/app/statistics/export', title: '详细数据导出',icon: 'export',permission:'wpscollect:export',
                    subs:[
                        { key: '/app/statistics/export/usage', title: '报活', component: 'ExportForm',permission:'usage:export',},
                        { key: '/app/statistics/export/logInstall', title: '安装量', component: 'ExportForm',permission:'logInstall:export',},
                        { key: '/app/statistics/export/logUninstall', title: '卸载量', component: 'ExportForm',permission:'logUninstall:export',},
                        { key: '/app/statistics/export/mso', title: 'MSO信息', component: 'ExportForm',permission:'mso:export'},
                        { key: '/app/statistics/export/updateRequest', title: '请求详情', component: 'ExportForm',permission:'updateRequest:export',},
                        { key: '/app/statistics/export/updateDownload', title: '下载详情', component: 'ExportForm',permission:'updateDownload:export',},
                        { key: '/app/statistics/updateInstall', title: '安装详情', component: 'ExportForm',permission:'updateInstall:export',},
                    ]
                },
            ]
        },
    ],
    others: [
        { key: '/app/system/changePwd', component: 'ChangePwdForm' },
        { key: '/app/system/privileges/add', component: 'Dashboard' },
        { key: '/app/system/roles/detail/:id', component: 'RoleAddOrEdit'},
        { key: '/app/system/roles/add', component: 'RoleAddOrEdit'},
        { key: '/app/system/roles/edit/:id',component: 'RoleAddOrEdit'},
        { key: '/app/upgrade/version/add/:id', component: 'VersioninfoMangerForm' }, //升级管理--版本信息管理--新增表单页面
        { key: '/app/upgrade/version/outPut', component: 'VersioninfoMangerOutput' }, //升级管理--版本信息管理--新增表单页面
        { key: '/app/upgrade/version/settingsItem/:id', component: 'SetDetailTable' }, //版本信息-设置信息
        { key: '/app/upgrade/version/clientInfo/:id', component: 'ClientTable' }, //版本信息-客户端信息
        { key: '/app/upgrade/version/popupInfo/:id', component: 'PopupTable' }, //版本信息-泡泡信息
        { key: '/app/upgrade/version/popupInfoCondition/:id', component: 'ConditionTable' }, //版本信息-泡泡信息-泡泡条件信息
        { key: '/app/upgrade/version/patchInfo/:id', component: 'PatchTable' }, //版本信息-升级包信息
        { key: '/app/upgrade/version/patchInfoCondition/:id', component: 'ConditionTable' }, //版本信息-升级包信息
        { key: '/app/upgrade/version/actions/:id', component: 'ActionsTable' }, //版本信息-动作信息
        { key: '/app/upgrade/common/collectInfo/:id',component: 'CollectInfo'},//升级管理-公共信息管理-收集信息-信息详情
        { key: '/app/upgrade/sysInfo/current/validator:id',component: 'SysinfoValidator'},//升级管理-当前状态表-验证页面
        { key: '/app/homepage', component: 'HomePage' },
    ]  // 非菜单相关路由
}